package cn.itcast.work.pojo;

import java.util.Date;

/**
 * 文章类
 */
public class Text {
    private int id;
    private String phone;

    private String title;
    private String subtitle;//摘要
    private String content;//内容
//    private Date createdata;//发布时间
    private String mid;//一级分类 外键
    private String cid;//二级分类 外键

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    @Override
    public String toString() {
        return "Text{" +
                "phone='" + phone + '\'' +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", content='" + content + '\'' +
//                ", createdata=" + createdata +
                ", mid='" + mid + '\'' +
                ", cid='" + cid + '\'' +
                '}';
    }

    public Text(){}
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

//    public Date getCreatedata() {
//        return createdata;
//    }

//    public void setCreatedata(Date createdata) {
//        this.createdata = createdata;
//    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Text(String phone, String title, String subtitle, String content, String mid, String cid) {
        this.phone =phone;
        this.title = title;
        this.subtitle = subtitle;
        this.content = content;
//        this.createdata = createdata;
        this.mid = mid;
        this.cid = cid;
    }
}
